package po;


import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>  
 *  TbCrowdNotice 群公告表

 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */


public class TbCrowdNotice  implements Serializable {


	/**
	 * 群公告ID
	 */
	private String gnid;

	/**
	 * 来源ID，即发布公告的用户ID
	 */
	private String sourceId;

	/**
	 * 公告内容
	 */
	private String content;

	/**
	 * 群ID
	 */
	private String cid;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 是否置顶
	 */
	private Integer isTop;

	/**
	 * 公告状态
	 */
	private Integer state;

	/**
	 * 是否删除
	 */
	private Integer isDelete;

	public String getGnid() {
		return gnid;
	}

	public void setGnid(String gnid) {
		this.gnid = gnid;
	}

	public String getSourceId() {
		return sourceId;
	}

	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getIsTop() {
		return isTop;
	}

	public void setIsTop(Integer isTop) {
		this.isTop = isTop;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	@Override
	public String toString() {
		return "TbCrowdNotice{" +
				"gnid='" + gnid + '\'' +
				", sourceId='" + sourceId + '\'' +
				", content='" + content + '\'' +
				", cid='" + cid + '\'' +
				", createTime=" + createTime +
				", isTop=" + isTop +
				", state=" + state +
				", isDelete=" + isDelete +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbCrowdNotice)) {
			return false;
		}
		TbCrowdNotice that = (TbCrowdNotice) o;
		return Objects.equals(gnid, that.gnid) &&
				Objects.equals(sourceId, that.sourceId) &&
				Objects.equals(content, that.content) &&
				Objects.equals(cid, that.cid) &&
				Objects.equals(createTime, that.createTime) &&
				Objects.equals(isTop, that.isTop) &&
				Objects.equals(state, that.state) &&
				Objects.equals(isDelete, that.isDelete);
	}

	@Override
	public int hashCode() {
		return Objects.hash(gnid, sourceId, content, cid, createTime, isTop, state, isDelete);
	}
}
